<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>更新数据</title>
</head>
<body>
<form action="/update" method="post" th:object="${student}">
    <input type="hidden" name="id" th:value="*{id}">
    ID:<input type="text" name="id" th:value="*{id}">
  姓名：<input type="text" name="name" th:value="*{name}">
  年龄：<input type="text" name="age" th:value="*{age}">
  性别：<input type="text" name="sex" th:value="*{sex}">
  密码：<input type="password" name="password" th:value="*{password}">
    <input type="submit" value="确认更新">
</form>
</body>
</html>